from conf.Contants import FIELD_MAP,IKAM



def convert(data:dict, to:dict=IKAM):
    ret = {}
    for k in to:
        if k in FIELD_MAP:
            k = FIELD_MAP.get(k)
        ret.setdefault(k, data.get(k))
    ret['event'] = f"Event{ret['event']}"
    return ret
